package cn.itcast.mq.controller;

import cn.itcast.mq.service.IMessageProvider;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: mq-demo
 * @ClassName SendMessageController
 * @description:
 * @author: zsn
 * @Version 1.0
 **/
@RestController
public class SendMessageController {

    @Autowired
    private IMessageProvider iMessageProvider;

    @GetMapping("send")
    public String send() {
        return iMessageProvider.send();
    }
}
